package com.wondertek.service.dto.sys.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author xqs
 */
@Data
public class SysLogQueryReq {

    private Integer pageNo = 1;

    private Integer pageSize = 10;

    @Schema(name = "type", description = "日志类别 1操作记录 2登录日志")
    private Integer type;

    @Schema(name = "searchText", description = "searchText")
    private String searchText;

    @Schema(name = "siteId", description = "站点")
    private String siteId;

    @Schema(name = "startTime", description = "开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    @Schema(name = "endTime", description = "结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    @Schema(name = "ids", description = "导出选择行数据-该属性有值时,其他条件失效")
    private List<String> ids;
}
